module Rical
  class Event < ActiveRecord::Base
    set_table_name "rical_events"
    belongs_to :calendar, :class_name => "Rical::Calendar"
    belongs_to :rrule_bymonth, :class_name => "Rical::RruleBymonth"
    belongs_to :rrule_byday, :class_name => "Rical::RruleByday"

    validates_presence_of :calendar
  end
end